<%@ Control Language="C#" AutoEventWireup="true" CodeFile="RssContentTest.ascx.cs" Inherits="admin_webparts_Plug_ins_RssNews_RssContentTest" %>
<%@ Import Namespace="NTTHAO.Web.Rss" %>
<table border="1" cellpadding="0" cellspacing="0" class="grid" id="tbGrid">
<%
if (_RssDoc != null)
{
    if (_RssDoc.Items != null && _RssDoc.Items.Count > 0)
    {
        for (int i = 0; i < _RssDoc.Items.Count; i++)
        {
            RssItem item = _RssDoc.Items[i];
%>
    <tr class="<%=(i%2==0?"even":"odd") %>">
        <td align="center"><%=i+1 %></td>
        <td>
            <%if (item.Image != string.Empty) { %>
            <img style="float: left; max-width: 120px; margin: 0px 5px 5px 0px;" src="<%=item.Image %>" />
            <%} %>
            <p><b><a target="_blank" href="<%=item.Link %>"><%=item.Title %></a></b></p>
            <%=item.Date.Year == 9999 ? "" : ("<p style=\"font-size: 10px;color: #87C631;\">" + item.Date.ToString("yyyy/MM/dd HH:mm") + "</p>")%>
            <p><%=item.Description %></p>
        </td>
    </tr>
<%
        }
    }
}
%>
</table>